package com.zdkj.subway.support.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zdkj.subway.support.dto.out.SwMessageDTO;
import com.zdkj.subway.support.entity.SwMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 站内消息
 *
 * @author cui_com
 * @date 2020-08-04 18:28:42
 */
public interface SwMessageMapper extends BaseMapper<SwMessage> {

    /**
     * 查询详细
     *
     * @param page
     * @param deptId
     * @param queryWrapper
     * @return
     */
    IPage<SwMessageDTO> queryDetailByPage(
            IPage page,
            @Param("deptId") Integer deptId,
            @Param(Constants.WRAPPER) Wrapper queryWrapper);

    /**
     * 批量审阅
     *
     * @param ids
     * @return
     */
    Integer updateReviewByIds(@Param("ids") List<Integer> ids);

}
